package DataLayer.DB;

import java.util.ArrayList;

import DataLayer.Model.Ordre;

public interface IFDBOrdre
{
	// get all SalesOrders
	public ArrayList<Ordre> getAllOrdre();

	// get all SalesOrders via Kunde name
	public ArrayList<Ordre> getAllOrdreViaKundeNavn(String Navn);

	// get all SalesOrders via Kunde Email
	public ArrayList<Ordre> getAllOrdreViaKundeEmail(String Email);

	// get all SalesOrders via Status
	public ArrayList<Ordre> getAllOrdreViaStatus(String Status);

	// get all SalesOrders via oprettelsesDato
	public ArrayList<Ordre> getAllOrdreViaoprettelsesDato(String oprettelsesDato);

	// find a SalesOrder using the id.
	public Ordre getOrdre(int ordreId);

	// insert new SalesOrder
	public int insertOrdre(Ordre o) throws Exception;

	// update SalesOrder
	public int updateOrdre(Ordre o);

	// delete SalesOrder
	public int deleteOrdre(Ordre o);
}
